package api

import (
	"gateway/basic/config"
	"github.com/gin-gonic/gin"
	"net/http"

	__ "gateway/basic/proto"
)

func Home(c *gin.Context) {
	home, err := config.ClassClient.Home(c, &__.HomeReq{})
	if err != nil {
		c.JSON(http.StatusOK, gin.H{
			"code": 400,
			"msg":  "查看失败",
			"data": err,
		})
		return
	}
	c.JSON(http.StatusOK, gin.H{
		"code": http.StatusOK,
		"msg":  "模块查看成功",
		"data": home,
	})
}

func HomeRemove(c *gin.Context) {

}

func MoDule(context *gin.Context) {

}

func Class(context *gin.Context) {

}

func ClassType(context *gin.Context) {

}

func Lass(context *gin.Context) {

}

func Like(context *gin.Context) {

}
